package com.qq2008.game.mojie.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qq2008.game.mojie.jdo.Role;
import com.qq2008.game.mojie.mapper.RolePlusMapper;
import com.qq2008.game.mojie.service.RolePlusService;
import org.springframework.stereotype.Service;

@Service
public class RolePlusServiceImpl extends ServiceImpl<RolePlusMapper, Role> implements RolePlusService {


    @Override
    public Role getRole(Integer roleId) {
        LambdaQueryWrapper<Role> queryWrapper = new LambdaQueryWrapper<Role>();
        queryWrapper.eq(Role::getUserId,roleId);
        Role one = this.getOne(queryWrapper);
        return one;
    }
}
